package com.principle.strategy.improve;

public class ToyDuck extends Duck {
    public ToyDuck() {
        flyBehavior=new NoFlyBehavior();
        quackBehavior=new NoQuackBehavior();
    }

    @Override
    void display() {
        System.out.println("这是玩具鸭");
    }

    @Override
    public void swim() {
        System.out.println("不能游泳");
    }

}
